<?php
namespace app\common\component\user;

class UserModel extends \think\Model {
	protected $table = 'league_user';

	public function getLevelAttr($value) {
		$status = [
			0 => '普通会员',
			1 => '高级会员'
		];

		return $status[$value];
	}
}
?>